package cube.utils.db.query;

/**
 * 搜索条件
 * 
 * @author abiao
 */
public class Condition {

    /**
     * 属性名
     */
    public String propName;

    /**
     * 属性值
     */
    public Object propValue;

    /**
     * 关系
     */
    public Relation relation;

    /**
     * 空条件
     */
    public Condition() {
    }

    /**
     * 查询条件
     */
    public Condition(String propName, Object propValue, Relation relation) {
        this.propName = propName;
        this.propValue = propValue;
        this.relation = relation;
    }
}
